home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1997 May / PC Plus Super CD Issue 127 (May 1997).iso / handson / java / classes / treasure.class (.txt) < prev   
Encoding:
Java Class File  |  1997-02-07  |  593 b   |  13 lines

  1. class Treasure extends Thing {
  2.    private int value;
  3.  
  4.    Treasure(String aName, String aDescription, int aValue) {
  5.       super(aName, aDescription);
  6.       this.value = aValue;
  7.    }
  8.  
  9.    int getValue() {
  10.       return this.value;
  11.    }
  12. }
  13.